<?php

namespace App\Repositories;

use App\Models\Licence;
use BobCoder\Construct\Foundation\Repository\Repository;

class LicenceRepository extends Repository
{
    protected $model;

    public function __construct()
    {
        $this->model = new Licence();
    }


    /**
     * 驾照类型
     * @param array $columns
     * @return mixed
     * @Author 姿势就是力量
     */
    public function getList(array $columns = ['*'])
    {
        return $this->model->select($columns)->orderBy('sort', 'desc')->get();
    }


}
